package com.example.gw_back_end.domain.entities;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.example.gw_back_end.domain.document.GameInfoDocument;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.List;

@Data
@TableName(value = "tb_game")
public class Game {

  @TableId(value = "id",type = IdType.AUTO)
  private Integer id;
  private String title;
  private String description;
  private LocalDateTime releaseDate;
  private Integer userId;
  private BigDecimal price;
  private BigDecimal priceD;
  private String coverImage;
  private Integer status;

  @TableField(exist = false)
  private List<Category> categories;
  @TableField(exist = false)
  private GameInfoDocument gameInfo;
}
